import { createLogger, createStore } from "vuex";
import setting from "./module/setting";
import design from "./module/design";
import release from "./module/release";
import user from "./module/user";
import debug from "./module/debug";
import flowEtl from "./module/flowEtl";
import getters from "./getters";

const debug_process = process.env.NODE_ENV !== "production";

const store = createStore({
  state: {},
  getters,
  mutations: {},
  actions: {},
  modules: {
    setting, design, release, user, debug,flowEtl
  },
  plugins: debug_process ? [createLogger()] : []
});

export default store;
